package org.example.ssmioc1.config;

import org.example.ssmioc1.pean.car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;

@Configuration
public class carConfig {
    @Bean
    public car car(){
        car car = new car();
        car.setName("BYD");
        return car;
    }
    @Bean
    public car car1(){
        car car = new car();
        car.setName("BYD1");
        return car;
    }
}
